package com.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dao.UserinfoDAO;
import com.pojo.UserinfoPOJO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserinfoService {

    @Autowired
    private UserinfoDAO userinfoDAO;

    public UserinfoPOJO sele(String user, String pwd){
        QueryWrapper q = new QueryWrapper();
        q.eq("u_username",user);
        q.eq("u_password",pwd);
        return  userinfoDAO.selectOne(q);
    }

}
